from applications.exts import ma
from marshmallow import fields


class GoodsOutSchema(ma.Schema):
    id = fields.Integer()
    price = fields.Float()
    gname=fields.Str()
    gphoto = fields.Str()
    isdel = fields.Integer()
    gtype = fields.Integer()
    gnum = fields.Integer()

    is_on_sale = fields.Integer()
    unit = fields.Str()
    content = fields.Str()
    isnew = fields.Integer()
    iscommon = fields.Integer()
    sales = fields.Integer()
    classifyid = fields.Integer()

    add_time = fields.DateTime()
    update_time = fields.DateTime()